/**
 * 环境配置文件
 * 开发环境
 * 测试环境
 * 线上环境
 */


const env = import.meta.env.MODE || 'prod'

const EnvConfig = {
    development: {
        baseApi: '/api',
        mockApi: 'http://localhost:8080'
    },
    test: {
        baseApi: '/api',
        mockApi: 'http://localhost:8080'
    },
    pro: {
        baseApi: '/api',
        mockApi: 'http://localhost:8080'
    }
}

export default {
    env,
    // 总的 mock 开关
    mock: false,
    ...EnvConfig[env]
}